package cn.mdx.mapper;

import cn.mdx.pojo.SkillUserVO;
import cn.mdx.pojo.Skilluser;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SkilluserMapper {
    int deleteByPrimaryKey(Integer uid);

    int insert(Skilluser record);

    int insertSelective(Skilluser record);

    Skilluser selectByPrimaryKey(Integer uid);


    int updateByPrimaryKeySelective(Skilluser record);

    int updateByPrimaryKey(Skilluser record);

    Skilluser selectByPassword(@Param("username") String username,@Param("password") String password);

    /*sfx===========================================================================*/
    List<SkillUserVO> getAllSkilluser(@Param("cid") Integer cid);

    List<SkillUserVO> getSkilluserByusername(Skilluser skilluser);

    Skilluser getSkilluserByUsername(@Param("username") String username);
}